const mongoose = require('./db');

// 定义一个表的字段和字段类型
const articleShema = new mongoose.Schema({
     title: String,
     img: String,
     explain: String,
     content: String,
     token: String,
     star: Number,
     time: String
})

const article = mongoose.model('article',articleShema);

module.exports = article;